package com.glacier.cloud.order.remote;

import com.glacier.cloud.order.entity.dto.cmd.CartRemoveCmd;
import com.glacier.cloud.order.remote.fallback.CartClientServiceFallback;
import com.glacier.framework.component.dto.response.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * date 2024-01-06 15:59
 *
 * @author glacier
 * @version 1.0
 */
@FeignClient(name = "cart-serv", contextId = "cart-serv", path = "/cart", fallback = CartClientServiceFallback.class)
public interface CartClientService {
    @PostMapping("removeProduct")
    Response<Integer> removeProduct(@RequestBody CartRemoveCmd cartRemoveCmd);
}
